<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>点击按钮后的生成的弹框（如更多条件)</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/model/general/datalist.js"></script> 
<script type="text/javascript">
	$(function(){
		initDataUse('commUseD','${m.prefix}','${m.dsId}');
	});
</script>
</head>
<body  onresize="resizeGrid();">
	<div id="${m.prefix}_DATA_DG_PANEL">
		<div id='${m.prefix}_DATA_PARENT_PANEL' title="${m.panelTitle}">
		  	<div>
		  		<table cellpadding="0" cellspacing="0" style="width: 100%;height:100%;padding-top: 10px; ">
					<tr>
						<td>
						    <div id="${m.prefix}_commDataLeftD">
								<table class='tableBord' id="${m.prefix}_commUseD"  style="float: left"></table>
								<span style="float: left; margin-right: 3px;" id="${m.prefix}_butnC">
									<a class='easyui-linkbutton' href="#" onclick="_d_bquery(this)" id='${m.prefix}_dataQuery'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flagStr='0' >查询</a>
									<a class='easyui-linkbutton' href="#" onclick="_d_czFunc(this,'_DATA_DATALIST','_commUseD')" id='${m.prefix}_czQuery'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flagStr='0' >重置</a>
								</span>
								<div style="display: none;float: left;text-align: center;margin-right: 3px;" id="per_cj">
									<span style="color: red; float: left;padding-top: 3px;font-size:13px;">请输入数量：</span><input id="integer" class="ainit-input" onkeyup="clearNoFlag(event,this,2)" style="width: 70px; color:red; border: 1px solid  #8db2e3; " type="text"
										onblur="inpBlur(this,1)" onfocus="inpFocus(this,1)" onkeydown="if(event.keyCode==13){xtcjEnter(this)}" cname = 'XTCJ_INPUT'/>
						    	</div>
						    	<!-- 生成个性按钮 -->
						    	<div id="${m.prefix}_butnP" >
									<c:if test="${fn:length(m.butnList)>0}">
										<c:forEach items="${m.butnList[0]}" var="but">
											<c:if test="${but.IS_GROUP != null}">
												<c:if test="${not empty but.IS_GROUP && but.IS_GROUP =='T'}">
													<a href="javascript:void(0)" id="mb2" plain="false"
														 menu="#${but.GROUP_ID}" class="easyui-menubutton"
														iconCls="">${but.BUTN_NAME}</a>
														<div id="${but.GROUP_ID}" style=
														"width: 150px;">
															<c:forEach items="${m.butnList[0]}" var="butn">
																<c:if test="${butn.IS_GROUP != 'T' && not empty butn.GROUP_ID && butn.GROUP_ID !=null && butn.GROUP_ID==but.GROUP_ID}">
															   		<div onclick="${butn.SCRIPT_FUNC}" code='${butn.BUT_CODE}' right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div>  
																</c:if>
															</c:forEach>
														</div>
												</c:if>
											</c:if>
											<c:if test="${but.IS_GROUP !='T' && (but.GROUP_ID == null || empty but.GROUP_ID)}">
												<a class='easyui-linkbutton' onclick="${but.SCRIPT_FUNC}" code='${but.BUT_CODE}' id='${but.BUTN_CNAME}' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
											</c:if>
										</c:forEach>
									</c:if>
									<a class='easyui-linkbutton' onclick="closePanel(this)"   sflag="d" pre='${m.prefix}' dsid='${m.dsId}'>返回</a>
						    	</div>
						    </div>
						</td>
					</tr>
				</table>
		  	</div>
		    <div id="${m.prefix}_DATA_TAB_PANEL"   style="width: 90%;">  
	      		<div title="${m.panelTitle}列表">      
			        <!-- Tab1 -->
					<table   style="width: 100%;table-layout:fixed">
						<tr>
							<td style="padding-top:10px;" >
								<!-- 数据列表 -->	
								<table id="${m.prefix}_DATA_DATALIST"  realdsid="${fn:split(m.dsId,';')[0]}" dsId="${m.dsId}" prefix="${m.prefix}"  ></table>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<input type="hidden" id='${m.prefix}_data_keyValues' value='${m.keyValues}'/>
		<input type="hidden" id='${m.prefix}_data_pk'/>
	</div>
</body>
</html>